package class_sources;

import java.util.ArrayList;
import java.util.HashMap;

import org.ksoap2.serialization.PropertyInfo;

// Rank
public class Rank {      
       private String NAMESPACE = "urn:ProductsService";   	
	   private String URL = "http://codediary.net/service/roadship_service.php?wsdl";
	   private String METHOD_NAME = "GetRank";
	   private String SOAP_ACTION = "urn:User#GetRank";
	   private static ArrayList<HashMap<String, String>> arrayList=new ArrayList<HashMap<String,String>>();
       public ArrayList<HashMap<String, String>> GetRanks()
       {    	    	                     
           PropertyInfo p[]=new PropertyInfo[1];
           p[0]=new PropertyInfo();
           p[0].setName("userId"); 
           p[0].setValue(1);         
           p[0].setType(Integer.class);
           WSandJson ws=new WSandJson(); 
           String response=ws.CallWSFunction(NAMESPACE, URL, METHOD_NAME, SOAP_ACTION,p);
           arrayList=ws.JsonToArrayList(response);         
           return arrayList;
          
	 
       }	
}

